package com.shop.Service;

import com.github.pagehelper.PageInfo;
import com.shop.pojo.Message;
import com.shop.pojo.User;
import com.shop.pojo.UserImg;

import java.util.List;


public interface UserService {
    User login(String username,String password) throws Exception;
    Message<String> addUser(String username, String password) throws Exception;
    Message<String> TokenYan(String Authorization) throws Exception;
    Message<List<User>> selectAllUser(String queryInfo, int pageSize, int pageNum) throws Exception;
    Message<PageInfo<User>> selectAllUserPage(String queryInfo, int pageSize, int pageNum) throws Exception;
    Message<String> updatePassword(String username,String password) throws Exception;
    Message<String> deleteUser(String username) throws Exception;
    Message<String> addImg(UserImg userImg) throws Exception;
    Message<String> deleteImg(String username) throws Exception;
    Message<String> selectImg(String username) throws Exception;
    Message<String> updateImg(UserImg userImg) throws Exception;
    public Message<Integer> selectCount() throws Exception;

}
